import request from '@/utils/request'

// 查询f用户账号列表
export function listFuser(query) {
  return request({
    url: '/consumer/fuser/list',
    method: 'get',
    params: query
  })
}

// 查询f用户账号详细
export function getFuser(userId) {
  return request({
    url: '/consumer/fuser/' + userId,
    method: 'get'
  })
}

// 新增f用户账号
export function addFuser(data) {
  return request({
    url: '/consumer/fuser',
    method: 'post',
    data: data
  })
}

// 修改f用户账号
export function updateFuser(data) {
  return request({
    url: '/consumer/fuser',
    method: 'put',
    data: data
  })
}

// 删除f用户账号
export function delFuser(userId) {
  return request({
    url: '/consumer/fuser/' + userId,
    method: 'delete'
  })
}
